$(function() {
    init();
});

function add() {
	var title = $("#title").val();
	var type = $("#type").val();
	var flag = $("#flag").val();
	var status = $("#status").val();
	var content = $("#content").val();
	var data = {
	    "oper":"add",
		"title": title,
		"type": type,
		"status": status,
		"flag": flag,
		"content": content
	};
	$.post("/master/article/crud", data,function(res) {
		window.location.href = "/master/article/list";
	});
}

function init() {
}